package com.jml.entity;

import lombok.Data;

import java.io.Serializable;


@Data
public class MsgEntity implements Serializable {
    private String userName;
    private Integer userId;

    public MsgEntity(String userName, Integer userId) {
        this.userName = userName;
        this.userId = userId;
    }
    public MsgEntity() {
        this.userName = userName;
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "MsgEntity{" +
                "userName='" + userName + '\'' +
                ", userId=" + userId +
                '}';
    }
}
